<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Admin Story Board</title>
</head>
<body>

<h1>Gestion des Users</h1>
<c:forEach items="${listUser}" var="user">
	<h3>${user.userName}</h3>
		
		<p>${user.phoneNumber}</p>
		<p>CARS</p>
		<ul>
		<form action="removeUser" method="post">
					<input type="submit" value="Supprimer User"> <input
						type="hidden" value="${user.id}" name="id2">
				</form>
		<c:forEach items="${user.getCar()}" var="car">
			<li>${car.name}</li>
			<form action="removeCar" method="post">
					<input type="submit" value="Supprimer voiture"> <input
						type="hidden" value="${car.id}" name="id2">
				</form>
			<p>ZONES</p>
		<ul>
		
		<c:forEach items="${car.getZone()}" var="zone">
			<li>${zone.name}</li>
		<form action="removeZone" method="post">
					<input type="submit" value="Supprimer zone"> <input
						type="hidden" value="${zone.id}" name="id2">
				</form>
			</c:forEach>
			</ul>
			</c:forEach>
			</ul>
</c:forEach>
</body>
</html>